export const convertArrayToMap = (names, values) => {
    return names.reduce((prev, next) => {
        prev[next] = values[names.indexOf(next)]
        return prev
    }, {})
}